package com.bdk.middle.order.api.domain;

import com.bdk.middle.common.domain.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class OrderDO extends BaseDO {

    @ApiModelProperty("应用id")
    private String appId;

    @ApiModelProperty("用户id")
    private String memberId;

    @ApiModelProperty("订单编号")
    private String orderNo;

    @ApiModelProperty("交易号")
    private String transactionNo;

    @ApiModelProperty("金额")
    private BigDecimal amount;

    @ApiModelProperty("配送费用")
    private BigDecimal postage;

    @ApiModelProperty("配送时间")
    private Date deliveryDate;

    @ApiModelProperty("支付方法")
    private Integer paymentMethod;

    @ApiModelProperty("支付时间")
    private Date paymentDate;

    @ApiModelProperty("取消原因")
    private String cancelReason;

    @ApiModelProperty("备注")
    private String remarks;

    @ApiModelProperty("订单状态")
    private Integer status;

    @ApiModelProperty("购买的商品项目")
    private List<GoodsItemDO> goodsItemList;

    @ApiModelProperty("返回订单项")
    private List<OrderItemDO> orderItemList;
}
